﻿@using System.Data
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{ 
    Model.url = "AuthList";
    Model.cols = 7;
}
<table id="EGV" class="table table-striped table-bordered table-hover">
    @if (Model.itemCount > 0)
    {
        <tr><th></th><th>网址</th><th>联系人</th><th>联系电话</th><th>申请时间</th><th>授权码</th><th>操作</th></tr>
        foreach (DataRow dr in Model.dt.Rows)
        {
            <tr>
                <td><input type="checkbox" name="idchk" value="@dr["ID"]" /></td>
                <td><a href="@dr["SiteUrl"]" target="_blank">@dr["SiteUrl"]</a></td>
                <td>@dr["Contact"]</td>
                <td>@dr["MPhone"]</td>
                <td>@DataConverter.CDate(dr["CDate"]).ToString("yyyy/MM/dd HH:mm:ss")</td>
                <td>@dr["AuthKey"]</td>
                <td>
                    @if (string.IsNullOrEmpty(DataConverter.CStr(dr["AuthKey"]))) { <a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["ID"]', url: 'Auth_Audit');">审核</a> }
                    else { <a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["ID"]', url: 'Auth_UNAudit');">取消审核</a> }
                    <a href="javascript:;" onclick="mvcpage.del({ ids: '@dr["ID"]', url: 'content_del', confirm: '确定要删除吗' });">删除</a>
                </td>
            </tr>
        }
        @Html.Partial("_page",Model)
    }
    else
    {
        <tr><td colspan="7">没有申请数据</td></tr>
    }
</table>